<?php
namespace app\api\model;


class Announce extends BaseModel
{
	protected $hidden = ['status', 'img_id', 'update_time'];

	public function img()
	{
		return $this->belongsTo('Image', 'img_id', 'id');
	}

	public static function getAnnounceInfo()
	{
		$info = self::with('img')->where('status', '=', 1)->select();

		return $info;
	}

}